﻿<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>代理商客户管理</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>

    <link rel="stylesheet" type="text/css" href="/static/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="/static/themes/icon.css">
    <link href="../../static/files/代理商客户管理/styles.css" type="text/css" rel="stylesheet"/>
    <script src="../../static/files/代理商客户管理/data.js"></script>
    <script type="text/javascript" src="/static/js/jquery.min.js"></script>
    <script type="text/javascript" src="/static/js/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="/static/js/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="/static/files/修改客户信息/data.js"></script>
  </head>
  <body>
  <div id="div0"><a href="${pageContext.request.contextPath}/customsInsert">添加客户</a></div>

  <table id="dg2"></table>
  </body>

  <script>
      // 显示账单详情
      $('#dg2').datagrid({
          url: '/asCustomsServiceShow',
          pagination: true,// 分页工具
          pageSize: 10,
          pageList: [5, 10, 15, 20, 50],// 每页可显示条数
          fitColumns: true,// 拉宽
          singleSelect:true,

          // fit: true,  // 拉高度
          toolbar: ".wu-toolbar-button",
          columns: [[
              {field: 'id', title: '序号',width: 20},
              {field: 'customname', title: '客户名称', width: 100},
              {field: 'bossname', title: '法人代表', width: 30},
              {field: 'regdatetime', title: '注册时间', width: 110},
              {field: 'customtypename', title: '类型', width: 30},
              {field: 'customstatus', title: '状态', width: 60, formatter:function (customstatus) {
                  return customstatus==0?'停用':'启用';
              }},
              {field:'sss',title: '操作', width: 60, formatter:function (id, row, rowIndex) {
                  return "<a href='${pageContext.request.contextPath}/asCustomsShow?id="+row.id+"'>查看</a>&nbsp;&nbsp;&nbsp;<a href='${pageContext.request.contextPath}/update?id="+row.id+"' class=''\\n\" +\n" +
                      "\"              target='mainFrame'>修改</a>";
              }}
          ]]
      });
  </script>
</html>
